package day02;

import static java.lang.System.out;

public class VarDemo {
   static int k;
    public static void main(String[] args) {
        int a;       // 声明了一个变量
        int b, c, d;  //声明了三个变量

        int e = 250;    //给变量赋值
        int f;          //声明变量
        f = 250;        //给变量赋值
        f = 360;        //修改变量的值
        f = 450;        //修改变量的值

        System.out.println(k);
        int g = 5;
        int h = g + 10;
        out.println(h);
        g = g + 20;
        out.println(g);
        A a1 = new A();
        a1.show();

    }
}
class A {
    int a;
    public void show() {
        out.println(a);
    }
}
